﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Account_Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RegisterHyperLink.NavigateUrl = "Register.aspx?ReturnUrl=" + HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]);
        if (!Page.IsPostBack && User.Identity.IsAuthenticated)
            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "Redirect", "window.open('Default.aspx?Login', '', 'titlebar=no,fullscreen=no,scrollbars=yes,location=no,menubar=no,resizable=yes', ''); win = top;win.opener = top;win.close ();", true);  
    }
}
